use "$path\datasets\rd_dataset.dta", clear

sort gkz jahr
merge m:1 gkz jahr  using "$path/datasets/minutes_data.dta"
keep if _merge==3


local depvar "women_anwesend"

rdd_plot  `depvar', includedbw(0.15)  control(margin_1) binsize(0.01)  bw(0.10) title("Attendance rates of female councilors") xtitle("Female candidate margin of victory (%)")

graph export Figure5/figure5a.pdf, replace

